-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CAT-839] Update GetPredictions Examples #125
Conversation
Total Coverage: 32.16% Coverage Report
|
Total Coverage: 32.16% Coverage Report
|
Total Coverage: 32.16% Coverage Report
|
Total Coverage: 32.16% Coverage Report
|
string jobId = await submissionClient.GenerateSubmissionResultAsync(submissionId); | ||
JToken jobResult = await jobClient.GetResultAsync<JToken>(jobId); | ||
string jobId = await client.Submissions().GenerateSubmissionResultAsync(submissionId); | ||
var jobResult = await client.JobAwaiter().WaitReadyAsync<JToken>(jobId, default, default); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we just use Jobs() instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep this how it is for now.
string jobId = await submissionClient.GenerateSubmissionResultAsync(submissionId); | ||
JToken jobResult = await jobClient.GetResultAsync<JToken>(jobId); | ||
string jobId = await client.Submissions().GenerateSubmissionResultAsync(submissionId); | ||
var jobResult = await client.JobAwaiter().WaitReadyAsync<JToken>(jobId, default, default); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep this how it is for now.
SubmissionResultAwaiter
retrieves the result file and only returns final predictions.GetPredictionsWithReview example queries for the job result instead. I suppose there is an open question on whether we should refactor SubmissionResultAwaiter to be able to retrieve pre_review, post_review, and final predictions